<%-- 
    Document   : pool
    Created on : Sep 23, 2011, 10:39:23 AM
    Author     : Yudi Retanto
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<jsp:include page="/header.jsp"></jsp:include>
<h1>
    Pilih Pool Keberangkatan
</h1>
<table>
    <tr>
        <th class="td-no">No</th>
        <th>Nama Pool</th>
        <th>Alamat</th>
        <th>No. Telepon</th>
    </tr>
    <c:forEach items="${pools}" var="pool">
        <c:set var="ordinal" value="${ordinal + 1}" />
        <tr id="record-${pool.getId()}">
            <td>${ordinal}</td>
            <td><a href="./shuttles?action=view&pool=${pool.getId()}">${pool.getName()}</a></td>
            <td>${pool.getAddress()}</td>
            <td>${pool.getPhone()}</td>
        </tr>
    </c:forEach>
</table>
<jsp:include page="/footer.jsp"></jsp:include>
